/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-10
 * Time: 14:31
 */
//输出1000-2000之间的所有闰年
public class TestDemo {
    public static void main(String[] args) {
        for (int i = 1000; i < 2000; i++) {
            if((i%4==0&&i%100!=0)||(i%400==0)) {
                System.out.print(i+" ");
            }
        }
    }
}
